'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	const id = event.id
	const res = await db.collection('addresses').where({id}).remove()
	if(res.requestId) {
		return {
			status: 0,
			msg: '删除成功'
		}
	} else {
		return {
			status: -1,
			msg: '删除失败'
		}
	}
};
